export function sum